package com.homework.question3;

/**
 * @ClassName Test
 * @Description TODO
 * @Author hp
 * @Date 2021/6/16 18:17
 * @Version 1.0
 **/
public class Test {
    public static void main(String[] args) {
        Person person = new Man();
        PersonImpl personimpl = new PersonImpl();
        personimpl.walk(person);
        personimpl.eat(person);
        ((Man)(person)).smoke();
    }
}
